import java.io.UnsupportedEncodingException;


public class TMain {

	public static void main(String[] args) {
		byte[] b;
		String x = "   3350002 ";
		int i = 0;
		b = Str2Hex(x);
		for (i=0; i<b.length; i++){
			System.out.print(b[i]);
		}
		System.out.println("\n");
		String y = Hex2Str(b);
		System.out.println(y);
	}

	public static String Hex2Str(byte[] ba){
		String s = "";
		/*int i = 0;
		for (i=0; i<ba.length; i++){
			s += Integer.toHexString(ba[i]).toUpperCase();
		}
		*/
		try {
			s = new String(ba,"UTF-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return s;
	}
	
	public static byte[] Str2Hex(String s){
		byte[] ba;
		ba = s.getBytes();
		return ba;
	}
}
